<?php echo form_fieldset('Usuarios');?>
<table border=0 align="center">        
<?php
echo form_hidden(array('name'=>'base_url','id' => 'base_url','value' =>base_url()));
echo form_open('usuarios_controller/guardar_usuario',$attributes= array('name' => "formUsuarios"));
            
?> 

    
	<tr>
		<td><?php echo form_label('Login', 'lbl_usuario');?></td>	
		<td><?php echo form_input('usuario',set_value('usuario')) ?></td>
		<td><?php echo form_error('usuario', '<div class="error">', '</div>'); ?></td>
	</tr>
	<tr>
		<td><?php echo form_label('Password', 'lbl_clave');?></td>	
		<td><?php echo form_password('clave',set_value('clave')) ?></td>
		<td><?php echo form_error('clave', '<div class="error">', '</div>'); ?></td>
	</tr>
	<tr>
		<td><?php echo form_label('Nivel', 'lbl_nivel');?></td>	
		<td><?php echo form_input('nivel',set_value('nivel')) ?></td>
		<td><?php echo form_error('nivel', '<div class="error">', '</div>'); ?></td>
	</tr>
	<tr>
	  <td><?php echo form_label('Sucursal', 'lbl_sucursal');?></td>
      <td> <?php echo form_dropdown('sucursal',$sucursal,set_select('sucursal','',TRUE)); ?> </td>
	  <td><?php echo form_error('sucursal', '<div class="error">', '</div>'); ?></td>
	</tr>
	<tr>
	  <td><?php echo form_label('Status', 'lbl_status');?></td>
      <td> <?php echo form_dropdown('status',$usuarios,2); ?> </td>
	  <td><?php echo form_error('status', '<div class="error">', '</div>'); ?></td>
	</tr>


	<tr>
    	<td colspan="2" align="right"><?php echo form_submit(array('name'=> 'btn_guardar','value'=>'Guardar','class'=>'Boton')) ?>
	   	<?php echo form_reset(array('name'=> 'btn_cancelar','value'=>'Cancelar','class'=>'Boton'))?></td>
       
	</tr>
 		<?php echo  form_close();?>
</table>
	<div class="content">
		<h1>Listado de Cliente</h1>
		<div class="paging"><?php echo $pagination; ?></div>
		<div class="data"><?php echo $table; ?></div>
		<br />
		
	</div>
